using System;

namespace CardsEngine
{
	/// <summary>
	/// Represents a player in a card game
	/// </summary>
	public class Player
	{
		private string name;
		private decimal bank;

		/// <summary>
		/// Initializes a new instance of the <see cref="CardsEngine.Player"/> class.
		/// </summary>
		/// <param name='_name'>
		/// The player's name
		/// </param>
		/// <param name='_bank'>
		/// Initial bankroll for this player
		/// </param>
		public Player (string _name, decimal _bank)
		{
			name = _name;
			bank = _bank;
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="CardsEngine.Player"/> class.
		/// </summary>
		/// <param name='_name'>
		/// The player's name
		/// </param>
		public Player (string _name)
		{
			name = _name;
		}

		/// <summary>
		/// Gets or sets the bank.
		/// </summary>
		/// <value>
		/// The bank.
		/// </value>
		public decimal Bank
		{
			get { return bank; }
			set { bank = value; }
		}

		/// <summary>
		/// Gets or sets the name.
		/// </summary>
		/// <value>
		/// The name.
		/// </value>
		public string Name
		{
			get { return name; }
			set { name = value; }
		}
	}
}

